home *** CD-ROM | disk | FTP | other *** search
- /* GETVECT.C --- p. 615 */
- #include <stdio.h>
- #include <dos.h>
- main()
- {
- void interrupt(*int_handler)();
- int intno;
- printf("Enter interrupt number in hexadecimal format: ");
- scanf(" %x", &intno);
- int_handler = getvect(intno);
- /* Print out address of the handler using the %p format.
- * Use the F qualifier to get the segment address also. */
- printf("\nThe address of the handler is: %Fp\n", int_handler);
- }